Defining Which Controls Have Tab Stops

Description

This script shows how to use the {DEFAULTTABSTOPS}, {NOTABSTOPS}, {TABSTOPS}, and {ENDTAB} to define which dialog controls have tab stops.

If you use the {TABSTOPS} command in Alpha Anywhere Version 6, then all controls that come after the command will have tab stops. this is actually the standard Windows behavior. this includes owner draw buttons, and tab buttons. The {ENDTAB} command terminates the {TABSTOPS} command.

ui_dlg_box("Tabbing",<<%dlg%
Tab stops enabled. All controls have tab stops.;
{tabstops}
{tab=x1}
{pane=One}
First Name:|[fname];
Last Name:|[lname];
<OK> <%B=T;O=Owner Draw Button%tb>
{pane=Two}
{endtab};

The {NOTABSTOPS} command disables all tabbing behavior. The {ENDTAB} command terminates the {NOTABSTOPS} command.

{lf};
Tab stops disabled. No controls in this section have tab stops.;
{notabstops}
{tab=x2}
{pane=One}
First Name:|[fname];
Last Name:|[lname];
<OK> <%B=T;O=Owner Draw Button%tb>
{pane=Two}
{endtab};

The {DEFAULTTABSTOPS} command enables Alpha Anywhere Version 5 tabbing behavior. The {ENDTAB} command terminates the {DEFAULTTABSTOPS} command.

{lf};
{wrap=80};
{defaulttabstops}
{tab=x3}
{pane=One}
First Name:|[fname];
Last Name:|[lname];
<OK> <%B=T;O=Owner Draw Button%tb>
{pane=Two}
{endtab};
%dlg%)

Limitations

Desktop applications only

See Also